<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/include.inc.jsp"%>
<div class="pageContent">
	<form method="post" action="perm/toUpdate" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<input type="hidden" name="id" value="${urlFilter.id }"></input>
		<input type="hidden" name="createDateStr" value="<fmt:formatDate value='${urlFilter.createDate}' pattern='yyyy-MM-dd HH:mm:ss'/>"/>
		<div class="pageFormContent" layoutH="56">
			
			<p>
				<label>名称：</label>
					<input type="text" name="name" value="${urlFilter.name }" maxlength="20" class="required" />
			</p>
			<p>
				<label>URL：</label>
					<input type="text" name="url" value="${urlFilter.url }" maxlength="20" class="required"/>
			</p>
			<p>
				<label>级别：</label>
					<input type="text" name="level" value="${urlFilter.level }" maxlength="20" />
			</p>
			<p>
				<label>关联角色：</label>
					<select name="roles" class="required">
							<option value="">未选择</option>
							<c:forEach var="role" items="${roleList }">
							<option value="${role.roleName }" <c:if test="${role.roleName==urlFilter.roles}">selected</c:if>>${role.description }</option>
							</c:forEach>
					</select>
			</p>
			<p>
				<label>权限：</label>
					<input type="text" name="permission" value="${urlFilter.permission }"></input>
			</p>
			<p>
				<label>是否启用：</label>
					<select name="isActived" class="required">
						<option value="">未选择</option>
						<option value="1" <c:if test="${urlFilter.isActived==1}">selected</c:if>>启用</option>
						<option value="0" <c:if test="${urlFilter.isActived==0 }">selected</c:if>>禁用</option> 
					</select>
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
